package com.unionftech.content_login.bean

import com.unionftech.baselibrary.base.BaseApplication
import com.unionftech.common.R.string
import com.unionftech.common.common.language.DynamicResourceManager
import com.unionftech.common.utils.ToastUtils

data class LoginLockWarning(
    val count: Int, val totalCount: Int
)

fun LoginLockWarning.toastLockWarning() {
    val str = DynamicResourceManager.getString(BaseApplication.appContext, string.MSUE0009)
    val toastResult =
        str.replace("<ph1></ph1>", count.toString())
            .replace("<ph2></ph2>", totalCount.toString())
    ToastUtils.longToast(toastResult)
}